import request from '@/utils/request'
// 获取月卡列表
export function GetCardList (params) {
  return request({
    url: '/parking/card/list',
    params
  })
}
// 新增月卡
export function addMonthcard (data) {
  return request({
    url: '/parking/card',
    method: 'POST',
    data
  })
}
// 获取月卡详情
export function getCarDetail (id) {
  return request({
    url: `/parking/card/detail/${id}`
  })
}
// 修改月卡
export function updateCar (data) {
  return request({
    url: '/parking/card/edit',
    data
  })
}
// 删除月卡
export function delCar (id) {
  return request({
    url: `/parking/card/${id}`,
    method: 'DELETE'
  })
}
// 批量删除月卡
export function delCarList (idList) {
  return request({
    url: `/parking/card/${idList.join(',')}`,
    method: 'DELETE'
  })
}
